/*!
* =====================================================
* Name: custom.scss
* Author: Alvin
* Version: 1.0.0
* Date: 2018-07-27 
* =====================================================
*/

* {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  max-height: 100000px;
  box-sizing: border-box;
}

//全局颜色
$color_text: #000;
$color_gray: #8c8c8c;
$border: #8c8c8c;
$btn_dialog: #eda732;
$font_title: 0.36rem;
$font_normal: 0.32rem;
$font_small: 0.24rem;
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  //解决滚动、滑动时候页面卡
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  //禁止选中文字
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  //禁止横竖屏时内容自动调整大小
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button,
input,
textarea,
input:active,
input:focus,
button,
input:hover,
input[type="button"] {
  //清除点击时的阴影
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  //表单元素的默认外观重置
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  outline: none;
  box-sizing: border-box;
  //手机上的line-height不能写成和height的值一样，会出现再次输入光标靠上的现象
  line-height: normal;
  border: 0;
}

a:active,
a:focus,
input:active {
  outline: none;
}

//去除谷歌浏览器input自动填充黄色背景
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

ol,
li {
  list-style: none;
}

img {
  border: 0;
  //禁止微信里面点图片弹出预览
  pointer-events: none;
  //禁止长按保存或拷贝图像
  -webkit-touch-callout: none;
}

.hide {
  display: none;
}

//页面
.container {
}

//弹出层
.dialog {
  display: none;
  background: rgba(0, 0, 0, 0.8) !important;
  background: #000;
  filter: alpha(opacity=80);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  overflow: hidden;
}

.dialog-content {
  width: 80%;
  height: auto;
  max-height: 70%;
  overflow-y: auto;
  background: #fff;
  position: absolute;
  margin: auto;
  padding: 0.3rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 0.1rem;
  h2 {
    font-size: $font_title;
    color: #333333;
    font-weight: bold;
    text-align: center;
    margin: 0.3rem auto;
  }
}

.dialog-body {
  margin: 0.3rem auto;
  max-width: 90%;
  font-size: 0.24rem;
  .role {
    li {
      margin-bottom: 0.2rem;
      &.small {
        font-size: 0.2rem;
      }
    }
  }
}

input {
  display: block;
  width: auto;
  font-size: 0.28rem;
  color: #000;
  height: 0.75rem;
  line-height: 0.55rem;
  padding: 0 0.4rem;
  &.btn_dialog {
    background: $btn_dialog;
    margin: 0.4rem auto 0.2rem auto;
    border-radius: 0.1rem;
  }
}

//自适应
@media screen and (max-width: 320px) {
}
